
<html>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript">

function closeLayer(){
	//alert(request('ss'));return;
	 parent.layer.closeAll();
}
function request(strParame) { 
	var args = new Object( ); 
	var query = location.search.substring(1); 

	var pairs = query.split("&"); // Break at ampersand 
	for(var i = 0; i < pairs.length; i++) { 
	var pos = pairs[i].indexOf('='); 
	if (pos == -1) continue; 
	var argname = pairs[i].substring(0,pos); 
	var value = pairs[i].substring(pos+1); 
	value = decodeURIComponent(value); 
	args[argname] = value; 
	} 
	return args[strParame]; 
	} 
	
var index = parent.layer.getFrameIndex(window.name);
	
	function sure(){
		var id=parent.toDeleteConcentratorId;
		$.ajax({
			type:"post",
			url:"../../concentrator/delete.action",
			dataType:"json",
			data:{"id":id},
			success:function(data){
				parent.getBedsData();return;
				parent.$(parent.nowDelBed).remove();
				
			}
		})
		parent.layer.msg('集中器已删除', {
	        time: 2000 
	    }, function(){
	        //do something	        
	    }); 
		parent.$(".layui-layer-content").css('color','#FFFFFF');
		parent.getConcentratorListData();
		setTimeout("parent.layer.close("+index+")",500);
		
	}
	
	function cancelDel(){
		parent.layer.close(index);
	}
</script>
<body style="height:240px;width:360px;border-radius: 4px;">
	<div style="width:320px;height:34px;margin:26 20 0 20">
		<span style="font-weight:bold;font-size:18px;color:#FF9600">删除集中器</span>
		<hr style=" width: 320px; height: 1px; border: none; border-top: 1px solid #FF9600;" />
	</div>
	<div style="width:360px;height:180px;padding-top:28px;padding-left:30px;padding-right:20px">
		<span style="font-size:14px;color:#666666;">确定要删除该集中器吗？</span>
		<div onclick="cancelDel()" style="cursor:pointer;width:80px;height:20px;border-radius: 15px;text-align:center;font-size:14px;color:#666666;border:1px solid #666666;
		position:relative;margin-left:140px;margin-top:72px;padding-top:4px;">取消</div>
		<div id="yes33" onclick="sure()" style="cursor:pointer;width:80px;height:20px;border-radius: 15px;text-align:center;font-size:14px;color:#FF9600;border:1px solid #FF9600;
		position:relative;margin-left:230px;margin-top:-26px;padding-top:4px;float:left">删除</div>
	</div>
</body>

</html>